﻿using Python.Runtime;
using Python.Runtime.Codecs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace cs2py
{
    public class MyDotNetDecoder : IPyObjectDecoder
    {
        public bool CanDecode(PyType objectType, Type targetType)
        {
            throw new NotImplementedException();
        }

        public bool TryDecode<T>(PyObject pyObj, out T value)
        {
            throw new NotImplementedException();
        }
    }

    public class MyDotNetEncoder : IPyObjectEncoder
    {
        public bool CanEncode(Type type)
        {
            throw new NotImplementedException();
        }

        public PyObject TryEncode(object value)
        {
            throw new NotImplementedException();
        }
    }

    public class PyCodec
    {
        public static EncoderGroup _group = new EncoderGroup();
        public static void Init()
        {
            PyObjectConversions.RegisterEncoder(_group);
            var myEncoder = new MyDotNetEncoder();
            PyObjectConversions.RegisterEncoder(myEncoder);
        }
    }
}
